package com.guli.gulimall.member.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ShuangyeZhao
 * @date 2021/12/8
 */
@RestController
@RequestMapping("/person")
public class PersonController {
    @Value("${person.name}")//sepl表达式
    private String name;

    @Value("${person.age}")
    private Integer age;

    @RequestMapping("/getMsg")
    public String getMsg(){

        return name+age;
    }
}
